package com.aabte.design2.structural.bridge;

/**
 * 强制器与设备分离
 *
 * @author Daniel
 * @version 1.0
 * @date 2020/5/3
 */
public class Application {

    public static void main(String[] args) {

        Device tv = new Tv();
        GeneralRemoteControl remoteControl = new GeneralRemoteControl(tv);
        remoteControl.togglePower();

        Radio radio = new Radio();
        AdvancedRemoteControl advancedRemoteControl = new AdvancedRemoteControl(radio);
        advancedRemoteControl.mute();

    }

}
